package cn.amsser.myshowcase.arithmetic.sort;

public class BubbleSort {

	public void sort(int[] array) {

		for (int i = 0; i < array.length; i++) {
			for (int j = 1; j < array.length - i; j++) {
				if (array[j] < array[i]) {
					int temp = array[j];
					array[j] = array[i];
					array[i] = temp;
				}
			}
		}

	}

}
